package com.rowline.admin.module.study.collections;

import java.util.ArrayList;
import java.util.Date;

/**
 * ClassName:GmtDate
 * Created by 245167
 * on 2017/12/1  01:00
 * description:
 */
public class GmtDate {

    private Date gmtdate;

    public Date getGmtdate() {
        return gmtdate;
    }

    public void setGmtdate(Date gmtdate) {
        this.gmtdate = gmtdate;
    }

    public static boolean isNaN(Object obj){
        return (obj != obj);
    }



    public static void main(String[] args) {

        boolean b1 = isNaN("hello");
        System.out.println("String = " + b1);
        String s = "world";
        boolean b4 = isNaN(s);
        System.out.println("String变量 = " + b4);
        boolean b2 = isNaN(15.6000F);
        System.out.println("float = " + b2);
        boolean b3 = isNaN(15L);
        System.out.println("String = " + b3);

        ArrayList list = new ArrayList();
        list.add("HELLO");
        list.add(123);
        System.out.println(list.toString());


//        GmtDate gmtDate = new GmtDate();
//        gmtDate.setGmtdate(new Date());
//        System.out.println(gmtDate.getGmtdate());
//        System.out.println(FastJsonUtil.toJSONString(gmtDate));


//        String param = "{\"gmtdate\":\"2017-12-01 14:06:08\"}";
//        GmtDate date2 = FastJsonUtil.parseObject(param,GmtDate.class);
//        System.out.println(date2.getGmtdate());
//        System.out.println(FastJsonUtil.toJSONString(date2));

    }
}
